package com.mac.hosp_pre.user.model.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * Patient
 *
 * @author mac
 */
@Data
@Schema(name = "就诊人")
public class PatientReqDto implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Schema(description = "用户id")
	private Long userId;

	@Schema(description = "姓名")
	private String name;

	@Schema(description = "证件类型")
	private Integer certificateType;

	@Schema(description = "证件编号")
	private String certificateNo;

	@Schema(description = "性别")
	private Integer sex;

	@Schema(description = "出生年月")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private LocalDateTime birthdate;

	@Schema(description = "手机")
	private String phone;

	@Schema(description = "是否结婚")
	private Integer isMarry;

	@Schema(description = "省code")
	private String provinceCode;

	@Schema(description = "市code")
	private String cityCode;

	@Schema(description = "区code")
	private String districtCode;

	@Schema(description = "详情地址")
	private String address;

	@Schema(description = "联系人姓名")
	private String contactName;

	@Schema(description = "联系人证件类型")
	private Integer contactCertificatesType;

	@Schema(description = "联系人证件号")
	private String contactCertificatesNo;

	@Schema(description = "联系人手机")
	private String contactPhone;

	@Schema(description = "是否有医保")
	private Integer isInsure;

	@Schema(description = "就诊卡")
	private String cardNo;

	@Schema(description = "状态（0：默认 1：已认证）")
	private Integer status;

	@Schema(description = "ID")
	private Long id;

	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	@Schema(description = "更新时间")
	private LocalDateTime updateTime;
}

